import java.util.Random;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lenovo
 * Date: 2025-05-25
 * Time: 13:46
 */
public class Test {
    public static void main(String[] args) {
        Random rand=new Random();
         int[] arr=new int[10];
         int max=0;
         int min=0;
         int sum=0;
        for (int i = 0; i < arr.length; i++) {
            arr[i]= rand.nextInt(100);
            System.out.print(arr[i]+"  ");
        }
        System.out.println(" ");
        for (int i = 0; i < arr.length; i++) {
            if(arr[i]>max)
                max=arr[i];
            if(arr[i]<min)
                min=arr[i];
            sum+=arr[i];
        }
        System.out.println("sum="+sum);
        System.out.println("max="+max);
        System.out.println("min="+min);
    }
}
